package com.yml.mybatis.gererator.config;

/**
 * 实体类配置
 *
 * @author YML
 * @since 2023-07-20 10:52
 */
public class EntityConfig {

    /** 实体包名 **/
    private String entityPackage = "entity";

    /** 指定生成的表 **/
    private String[] tables;

    /** 实体类名称格式化 **/
    private String entityFormat = "%sEntity";

    /** 是否生成继承类转换 **/
    private boolean enableGenerateConvert = false;

    public String getEntityPackage() {
        return entityPackage;
    }

    public EntityConfig setEntityPackage(String entityPackage) {
        this.entityPackage = entityPackage;
        return this;
    }

    public String[] getTables() {
        return tables;
    }

    public EntityConfig setTables(String... tables) {
        this.tables = tables;
        return this;
    }

    public String getEntityFormat() {
        return entityFormat;
    }

    public EntityConfig setEntityFormat(String entityFormat) {
        this.entityFormat = entityFormat;
        return this;
    }

    public boolean isEnableGenerateConvert() {
        return enableGenerateConvert;
    }

    public EntityConfig setEnableGenerateConvert(boolean enableGenerateConvert) {
        this.enableGenerateConvert = enableGenerateConvert;
        return this;
    }
}
